package com.wys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wys.pojo.User;
import com.wys.result.R;

import javax.servlet.http.HttpSession;
import java.util.Map;

public interface UserService extends IService<User> {

    /**
     *  发送邮箱验证码
     * @param user
     * @param session
     * @return
     */
    void sendMsg(User user, HttpSession session);

    /**
     *  手机端用户登录
     * @param map 登陆的邮箱和密码集合
     * @return
     */
    R<User> login(Map map,HttpSession session);
}
